package com.linsir.model;

import com.linsir.common.base.BaseModel;

import java.util.List;

/**
 * @author linsir
 * @title: Widget
 * @projectName linsir-mu
 * @description: 控件
 * @date 2021/12/3 0:11
 */
public class Widget extends BaseModel<Widget> {

    private static final long serialVersionUID = 4254060861819273244L;

    public static final Widget dao = new Widget();

    /** EOVA控件 **/
    public static final int TYPE_EOVA = 1;
    /** DIY控件 **/
    public static final int TYPE_DIY = 2;

    public List<Widget> findByType(int type) {
        return this.queryByCache("select * from eova_widget where type = ?", type);
    }
}
